if ~isempty(zin)
    if ischar(zin)
        dataswitch = zin;
        marmDataSelection;
        invarz = temp(:,:,50);
        invarzStd = marmmeanrois( invarz );
    else
        invarz = zin;
    end
    z = cat(1, invarz(graymask > 0), invarz(whitemask > 0));
else
    invarz = [];
    z = [];
end